package cn.bugstack.domain.order.adapter.repository;

import cn.bugstack.domain.order.model.aggregate.CreateOrderAggregate;
import cn.bugstack.domain.order.model.entity.OrderEntity;
import cn.bugstack.domain.order.model.entity.PayOrderEntity;
import cn.bugstack.domain.order.model.entity.ShopCartEntity;

import java.util.List;

/**
 * @Author: 小新
 * @Date: 2025/3/22 13:36
 * @Description:
 * @Version: v1.0
 */
public interface IOrderRepository {
    OrderEntity queryUnpaidOrder(ShopCartEntity shopCartEntity);

    void doSaveOrder(CreateOrderAggregate createOrderAggregate);

    void updateOrderPayInfo(PayOrderEntity payOrderEntity);


    void changeOrderPyaSuccess(String orderId);

    List<String> queryNoPayNotifyOrder();

    List<String> queryTimeoutClosedOrderList();

    boolean changeOrderClose(String orderId);
}
